<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<fmt:setLocale value="pt_BR"/>
<!DOCTYPE html>
<html lang="en">
  <head>
  	<c:import url="../includes/headBootstrap.jsp"/>
    <title>Home</title>
  </head>
  <body>
    <c:import url="../includes/header.jsp"/>

<div class="container">
	<h3>Faturas de ${instituicao.nome}</h3>
	<div class="list-group">
	<c:forEach items="${faturas}" var="fatura">
		<a href="<c:url value="/poslogin/faturas/detalhes?idFatura=${fatura.id}"/>" class="list-group-item">
        	<h4 class="list-group-item-heading">
        		<fmt:formatNumber value="${fatura.valorFatura/100}" type="currency"/>
        	</h4>
        	<p class="list-group-item-text">
        		<fmt:formatDate pattern="dd/MM/yyyy" value="${fatura.dtVencimento}" /> 
			</p>
      	</a>      
	</c:forEach>
	</div>
</div>

	<c:import url="../includes/footBootstrap.jsp"/>    
  </body>
</html>